package com.xc.tjise.TJISE.day10;

// 继承方法实现多线程 建议接口方法

public class MT1 extends Thread {



    public static void main(String[] args) throws InterruptedException {
        MT1 mt1 =new MT1();
        mt1.start();
        Thread.sleep(100);
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }
        @Override
        public void run() {
            super.run();
            System.out.println("test");
        }

}
